"use strict";var PortUsage={previous_received:0,previous_sent:0,initialize:function(){var e=this;e.main_timer_reference=setInterval(function(){e.update()},1e3)},update:function(){if(serial.bitrate){parseInt(10*(serial.bytesReceived-this.previous_received)/serial.bitrate*100),parseInt(10*(serial.bytesSent-this.previous_sent)/serial.bitrate*100);this.previous_received=serial.bytesReceived,this.previous_sent=serial.bytesSent}},reset:function(){this.previous_received=0,this.previous_sent=0}};